//
//  NetworkingTools.h
//  Emoticon
//
//  Created by 袁量 on 2017/8/15.
//  Copyright © 2017年 袁量. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
typedef enum _RequestType{
    GET = 0,
    POST,
    Any
}RequestType;
typedef enum _AcctionType{
    upload = 0,
    addthepost,
    getthepost,
}AcctionType;
@interface NetworkingTools : AFHTTPSessionManager
+ (instancetype _Nullable )ShareManager;
- (void)requestWithmethodType:(RequestType)methodType urlString:(NSString *_Nullable)urlString parameters:(id _Nullable )parameters finished:(void (^_Nullable)(id _Nullable result, NSError * _Nullable error))finished;
- (void)uploadWithImg:(UIImage* _Nullable(^_Nullable)(id _Nullable result, NSError * _Nullable error))finished;
@end
